<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        var result=0;
        var i=1;
        while (i<=100){
            result+=i;
            i++
        }
        console.log('运算结果为：'+result+'。')
    </script>
</head>
<body>

</body>
</html>